// pages/mine/mystore/brand.js
Page({

  /**
   * 页面的初始数据
   */
  data: {

 brand:[
	 {img:"/images/brand1.png",name:"米其林",selected:""},
	 { img: "/images/brand2.png", name: "文丰", selected: ""},
	 { img: "/images/brand3.png", name: "乔氏", selected: "" },
	 { img: "/images/brand4.png", name: "壳牌", selected: "" },
	 { img: "/images/brand5.png", name: "菲罗多", selected: "" },
	 { img: "/images/brand6.png", name: "马勒", selected: "" },
	 ]
  },
brandtap:function(e){
var index=e.currentTarget.dataset.index;
var brand=this.data.brand;
var selected=brand[index].selected;
	brand[index].selected = !selected;
	this.setData({
		brand:brand
	})
	console.log(brand)
},
confirm:function(){
	wx.navigateBack({
		
	})
},
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})